package cn.edu.sdjzu.xg11.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sdjzu.xg11.dao.DegreeDao;
import cn.edu.sdjzu.xg11.domain.Degree;

@Service
public class DegreeService {
	@Autowired
	private DegreeDao degreeDao;

	public Collection<Degree> getDegrees() {
		return degreeDao.getDegrees();
	}
	
	public Degree getDegree(Integer id){
		return degreeDao.getDegree(id);
	}
}
